package com.bingo.demo.DAO;

import com.bingo.demo.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface CommentMapper {

    List<Comment> findByEssayId(Integer essayId);

    Comment findById(Integer id);

    void addComment(Comment comment);

    void deleteById(Integer id);

}
